@using OrchardCore.Entities
@using OrchardCore.Settings
@using OrchardCore.Facebook.Settings
@model OrchardCore.Facebook.Widgets.ViewModels.FacebookPluginPartViewModel;
@inject ISiteService _site
@{
    var fbInit = (await _site.GetSiteSettingsAsync()).As<FacebookSettings>().FBInit;
}

@Html.Raw(Model.Html)

@if (!fbInit)
{
    <script asp-name="fb" at="Foot"></script>
}
